﻿<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:OMANE.Modules.PMT" 
			 xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" 
			 x:Class="ViewGenTbleFluxPMT" 
             mc:Ignorable="d">
	<UserControl.Resources>
		<local:BoolToVisibilityInvConverter x:Key="BoolToVisibilityInvConverter"/>
		<local:TableStateToIconConverter x:Key="TableStateToIconConverter"/>
		<Style x:Key="ButtonStyleVisuDetail" TargetType="{x:Type Button}">
			<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
			<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Padding" Value="1"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</UserControl.Resources>
	<d:DataContext>
		<local:ViewModelFichierPMT/>
	</d:DataContext>
    <Grid VerticalAlignment="Top">
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition/>
    		<ColumnDefinition Width="Auto"/>
    		<ColumnDefinition Width="Auto"/>
    	</Grid.ColumnDefinitions>
    	<Grid.RowDefinitions>
    		<RowDefinition Height="Auto" MinHeight="25"/>
    	</Grid.RowDefinitions>
    	<TextBlock Margin="0,2,10,2" TextWrapping="Wrap" Text="{Binding DisplayName, Mode=OneWay}" VerticalAlignment="Center" ToolTip="{Binding FileFullName, Mode=OneWay}"/>
    	<Image VerticalAlignment="Center" Grid.Column="1" Width="16" Source="{Binding FileExists, Converter={StaticResource TableStateToIconConverter}, Mode=OneWay}"/>
    	<Button Grid.Column="2" VerticalAlignment="Center" Background="{x:Null}" Padding="0" BorderThickness="0" Command="{Binding VisuDetailsFichierPMT, Mode=OneWay}" Style="{DynamicResource ButtonStyleVisuDetail}" HorizontalAlignment="Right" Width="16" Margin="5,0,0,0">
    		<Image VerticalAlignment="Center" Width="16" Source="/OMANE.Modules.PMT;component/Images/icone_oeil.gif" Cursor="Hand" d:LayoutOverrides="Width" HorizontalAlignment="Center"/>
    	</Button>
            
    </Grid>
</UserControl>
